package de.ars.client.animator;

public class Point
{
    protected float x;
    protected float y;
    
    public Point()
    {
        x = 0.0f;
        y = 0.0f;
    }
    
    public Point(float x, float y)
    {
        this.x = x;
        this.y = y;
    }
    
    public Point(Point p)
    {
        this.x = p.x;
        this.y = p.y;
    }
    
    public float getX()
    {
        return x;
    }
    
    public float getY()
    {
        return y;
    }
    
    public int getXI()
    {
        return (int)x;
    }
    
    public int getYI()
    {
        return (int)y;
    }
    
    public void setX(float x)
    {
        this.x = x;
    }
    
    public void setY(float y)
    {
        this.y = y;
    }
    
    public void setBoth(float x, float y)
    {
        this.x = x;
        this.y = y;
    }
    
	public void setBoth(Point p)
	{
        this.x = p.x;
        this.y = p.y;
    }
    
    public String toString()
    {
    	return "x: " + this.x + " y: " + this.y;
    }
}
